package com.rustic.server.vo.list;

import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.rustic.server.po.Rustic;

import java.util.Date;

/**
 * 表[rustic]对应VO类
 *
 * @author auto
 */

@Data
public class RusticAdminListVO {

    /**
     * 自增ID
     */
    @ApiModelProperty(value = "自增ID", dataType = "Integer")
    private Integer id;

    /**
     * 联系人手机号码
     */
    @ApiModelProperty(value = "联系人手机号码", dataType = "String")
    private String mobile;

    /**
     * 乡村名
     */
    @ApiModelProperty(value = "乡村名", dataType = "String")
    private String name;

    /**
     * 简介
     */
    @ApiModelProperty(value = "简介", dataType = "String")
    private String briefIntro;

    /**
     * 地区
     */
    @ApiModelProperty(value = "地区", dataType = "String")
    private String address;

    /**
     * 封面
     */
    @ApiModelProperty(value = "封面", dataType = "String")
    private String cover;

    /**
     * 状态（1正常 2停用）
     */
    @ApiModelProperty(value = "状态（1正常 2停用）", dataType = "int")
    private int status;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间", dataType = "Date")
    private Date updateTime;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间", dataType = "Date")
    private Date createTime;

    public RusticAdminListVO(Rustic rustic) {
        if (rustic != null) {
            BeanUtil.copyProperties(rustic, this);
        }
    }
}
